package com.atstudy.headline.web.admin.service.impl;

import com.atstudy.headline.entity.Tags;
import com.atstudy.headline.web.admin.mapper.TagsMapper;
import com.atstudy.headline.web.admin.service.TagsService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class TagsServiceImpl
        extends ServiceImpl<TagsMapper, Tags>  // 关键修复：继承ServiceImpl
        implements TagsService {

    @Autowired
    private TagsMapper tagsMapper;

    // 实现自定义方法
    @Override
    public List<Tags> list() {
        return tagsMapper.selectList(null);
    }

    // 以下是MyBatis Plus要求实现的接口方法
    // ServiceImpl基类已提供默认实现，无需单独编写

}